package cn.ren.dao;

import cn.ren.pojo.Member;
import cn.ren.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    /**
     * 根据预约对象查询
     * @param order
     * @return
     */
    List<Order> findOrderByCondition(Order order);

    /**
     * 增加预约订单
     * @param order
     */
    void add(Order order);

    /**
     * 根据预定订单id查询订单map
     * @param id
     * @return
     */
    Map findById(Integer id);

    Integer findTodayOrderCount(String today);

    Integer findThisWeekOrderNumber(String firstDayOfWeek);

    Integer findThisMonthOrderNumber(String firstDay4ThisMonth);

    Integer findTodayVisitCount(String today);

    Integer findWeekVisitCount(String firstDayOfWeek);

    Integer findMonthVisitCount(String firstDay4ThisMonth);

    List<Map<String, Object>> findHotSetmeal();


    long dj_findBySetmealIdAndOrderDate(Map<String, Object> map);

    List<Order> lzFindBySetmealid(int checkgroupId);


}
